package com.tiny.tinyweb.core.test;

import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.DependencyInjectionTestExecutionListener;

/**
 * 受管 Bean 单元测试的基类，该类使用 {@link org.springframework.test.context.junit4.SpringJUnit4ClassRunner}
 * 来执行，并加载受管 Bean 的配置文件。
 * @author wxiaobin
 */
@RunWith(SpringJUnit4ClassRunner.class)
@TestExecutionListeners({
        DependencyInjectionTestExecutionListener.class,
        UnitTestLdapExecutionListener.class})
@ContextConfiguration(locations = {
        "classpath:UnitTestContextSources.xml",
        "classpath:CtxBeans.xml",
        "classpath:aop.xml"})
public abstract class UnitTestLdap extends UnitTest {
}
